import React from 'react';
import ReactDom from 'react-dom';
import { LocaleProvider } from 'antd';
import { Provider } from 'react-redux';
import { HashRouter as Router} from 'react-router-dom';
import { renderRoutes } from 'react-router-config';
import zh_CN from 'antd/lib/locale-provider/zh_CN';
import 'moment/locale/zh-cn';
import store from './redux/store';

import routes from './routes/index.js';

ReactDom.render(<Provider store={store}><LocaleProvider locale={zh_CN}>
      <Router>{renderRoutes(routes)}</Router>
    
  </LocaleProvider></Provider>, document.getElementById('app-root'));